import request from '@/utils/request'

// 查询打款审批列表
export function listAudit(query) {
    return request({
        url: '/operations/audit/list',
        method: 'get',
        params: query
    })
}

// 查询打款审批详细
export function getAudit(id) {
    return request({
        url: '/operations/audit/' + id,
        method: 'get'
    })
}

// 新增打款审批
export function addAudit(data) {
    return request({
        url: '/operations/audit',
        method: 'post',
        data: data
    })
}

// 修改打款审批
export function updateAudit(data) {
    return request({
        url: '/operations/audit',
        method: 'put',
        data: data
    })
}

// 删除打款审批
export function delAudit(id) {
    return request({
        url: '/operations/audit/' + id,
        method: 'delete'
    })
}

// 查询用于审核的订单列表
export function getOrderListForAudit() {
    return request({
        url: '/operations/audit/orders',
        method: 'get'
    })
}
